package com.ehotting.edsta.circuitDesign.domain;

import com.ehotting.edsta.circuitDesign.enums.StateTypeEnum;
import com.ehotting.eaf.core.annotation.Excel;
import com.ehotting.eaf.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 电路属性参数对象 es_circuit_code_data
 * 
 * @author edsta
 * @date 2023-07-24
 */
public class EsCircuitCodeData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 电路编号 */
    @Excel(name = "电路编号")
    private Long circuitId;

    /** 模板编号
     * {@link EsCircuitCodeDataTemplate#getId()}
     * */
    @Excel(name = "模板编号")
    private Long templateId;


    private EsCircuitCodeDataTemplate circuitCodeDataTemplate;

    /** 状态 */
    @Excel(name = "状态")
    private StateTypeEnum state;

    /** 值 */
    @Excel(name = "值")
    private String value;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCircuitId(Long circuitId) 
    {
        this.circuitId = circuitId;
    }

    public Long getCircuitId() 
    {
        return circuitId;
    }
    public void setTemplateId(Long templateId) 
    {
        this.templateId = templateId;
    }

    public Long getTemplateId() 
    {
        return templateId;
    }
    public void setState(StateTypeEnum state)
    {
        this.state = state;
    }

    public StateTypeEnum getState()
    {
        return state;
    }
    public void setValue(String value) 
    {
        this.value = value;
    }

    public String getValue() 
    {
        return value;
    }

    public EsCircuitCodeDataTemplate getCircuitCodeDataTemplate() {
        return circuitCodeDataTemplate;
    }

    public void setCircuitCodeDataTemplate(EsCircuitCodeDataTemplate circuitCodeDataTemplate) {
        this.circuitCodeDataTemplate = circuitCodeDataTemplate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("circuitId", getCircuitId())
            .append("templateId", getTemplateId())
            .append("state", getState())
            .append("value", getValue())
            .toString();
    }
}
